package com.molichuxing.gateway.bff.goods.service;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.gateway.bff.goods.response.GoodsBaseVo;
import com.molichuxing.gateway.bff.goods.response.GoodsDetailVo;
import com.molichuxing.gateway.bff.goods.response.GoodsVo;

import java.util.Map;

/**
 * 商品bff
 * @author xuelin yi
 */
public interface GoodsBffService extends RootService {

	/**
	 * 获取商品信息列表
	 * @param selectParams
	 * @return
	 */
	public Paged<GoodsVo> getGoodsList(Map<String, Object> selectParams, Integer pageNum, Integer pageSize);

	/**
	 * 获取商品基础信息
	 * @param goodsId
	 * @return
	 * @throws Exception
	 */
	public GoodsBaseVo getBaseGoods(Integer goodsId) throws Exception;

	/**
	 * 获取商品详细信息
	 * @param goodsId
	 * @return
	 * @throws Exception
	 */
	public GoodsDetailVo getDetailGoods(Integer goodsId)throws Exception ;
}
